var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var BundleConfig = require("AA_BundleConfig");
var GameGlobalVariable = require("AA_GameGlobalVariable");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;
_decorator.inspector;
var _def_Item_GameBagCell = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.node_bgNode = null;
    t._isShow = false;
    return t;
  }
  __extends(_creator, e);
  Object.defineProperty(_creator.prototype, "cellData", {
    get: function () {
      return this._cellData;
    },
    enumerable: false,
    configurable: true
  });
  _creator.prototype.onLoad = function () {
    var e = this;
    this._loadRes(BundleConfig.BundleNames.Game, "game/" + "res/bg/" + GameGlobalVariable.GameGlobalVariable.getSceneId(), cc.SpriteFrame).then(function (t) {
      e.node_bgNode.getComponent(cc.Sprite).spriteFrame = t;
    });
  };
  _creator.prototype.StartSet = function (e, t) {
    this.SetCellData(e);
    this.SetBgNodeShow(t);
    this.equipComp = null;
  };
  _creator.prototype.SetCellData = function (e) {
    this._cellData = e;
  };
  _creator.prototype.SetBgNodeColor = function (e) {
    this.node_bgNode.color = e;
  };
  _creator.prototype.DragEndLockThis = function (e) {
    this.equipComp = e;
  };
  _creator.prototype.SetBgNodeShow = function (e) {
    this.node_bgNode.active = e;
    this._isShow = e;
    this.node_bgNode.opacity = 255;
  };
  _creator.prototype.TempShow = function (e) {
    if (!this._isShow) {
      this.node_bgNode.opacity = e ? 100 : 255;
      this.node_bgNode.active = e;
    }
  };
  __decorate([_property(cc.Node)], _creator.prototype, "node_bgNode", undefined);
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_Item_GameBagCell;